package domain;
public enum Stock {
	BTR("BTR"), IBM("IBM"), MSFT("MSFT"), APPLE("APPLE");
	
	String str;
	Stock(String str) {
		this.str = str;
	}
	public String toString() {
		return str;
	}
	
	String value() {
		return str;
	}
	
	public static Stock parse(String value){
		for(Stock val : Stock.values()){
			if (val.value().equals(value)) return val;
		}
		return null;
	}
}
